package com.jnevision.clockin.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 工作打卡记录
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */
@TableName("b_clock_in")
public class ClockIn extends Model<ClockIn> {
    private static final long serialVersionUID = -5141157450923236773L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @TableField("user_id")
    private String userId;

    /**
     * 上班打卡时间
     */
    @TableField("work_shift")
    private String workShift;

    /**
     * 下班打卡时间
     */
    @TableField("closing_time")
    private String closingTime;

    /**
     * 上班打卡地点
     */
    @TableField("work_place")
    private String workPlace;

    /**
     * 下班打卡地点
     */
    @TableField("off_place")
    private String offPlace;
    /**
     * 下午上班时间
     */
    @TableField("work_shift1")
    private String workShift1;
    /**
     * 上午下班时间
     */
    @TableField("closing_time1")
    private String closingTime1;
    /**
     * 下午上班地点
     */
    @TableField("work_place1")
    private String workPlace1;
    /**
     * 上午下班地点
     */
    @TableField("off_place1")
    private String offPlace1;

    /**
     * 上班打卡状态
     */
    @TableField("on_status")
    private Integer onStatus;

    /**
     * 下班打卡状态
     */
    @TableField("off_status")
    private Integer offStatus;

    /**
     * 考勤状态
     */
    @TableField("clock_in_status")
    private Integer clockInStatus;

    /**
     * 工作日
     */
    @TableField("work_day")
    private String workDay;

    /**
     * 脸部识别码
     */
    @TableField("face_code")
    private String faceCode;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private String deptName;

    public String getDeptName() {
        return this.deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFaceCode() {
        return this.faceCode;
    }

    public void setFaceCode(String faceCode) {
        this.faceCode = faceCode;
    }

    public String getWorkDay() {
        return this.workDay;
    }

    public void setWorkDay(String workDay) {
        this.workDay = workDay;
    }

    public Integer getClockInStatus() {
        return this.clockInStatus;
    }

    public void setClockInStatus(Integer clockInStatus) {
        this.clockInStatus = clockInStatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getWorkShift() {
        return workShift;
    }

    public void setWorkShift(String workShift) {
        this.workShift = workShift;
    }

    public String getClosingTime() {
        return closingTime;
    }

    public void setClosingTime(String closingTime) {
        this.closingTime = closingTime;
    }

    public String getWorkPlace() {
        return workPlace;
    }

    public void setWorkPlace(String workPlace) {
        this.workPlace = workPlace;
    }

    public String getOffPlace() {
        return offPlace;
    }

    public void setOffPlace(String offPlace) {
        this.offPlace = offPlace;
    }

    public Integer getOnStatus() {
        return onStatus;
    }

    public void setOnStatus(Integer onStatus) {
        this.onStatus = onStatus;
    }

    public Integer getOffStatus() {
        return offStatus;
    }

    public void setOffStatus(Integer offStatus) {
        this.offStatus = offStatus;
    }

    public String getWorkShift1() {
        return this.workShift1;
    }

    public void setWorkShift1(String workShift1) {
        this.workShift1 = workShift1;
    }

    public String getClosingTime1() {
        return this.closingTime1;
    }

    public void setClosingTime1(String closingTime1) {
        this.closingTime1 = closingTime1;
    }

    public String getWorkPlace1() {
        return this.workPlace1;
    }

    public void setWorkPlace1(String workPlace1) {
        this.workPlace1 = workPlace1;
    }

    public String getOffPlace1() {
        return this.offPlace1;
    }

    public void setOffPlace1(String offPlace1) {
        this.offPlace1 = offPlace1;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ClockIn{" + "id=" + id + ", userId=" + userId + ", workShift=" + workShift + ", closingTime="
            + closingTime + ", workPlace=" + workPlace + ", offPlace=" + offPlace + ", onStatus=" + onStatus
            + ", offStatus=" + offStatus + "}";
    }
}